<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="shortcut icon" href="/favicon.ico" />
    <title>首页--layui后台管理模板 2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="{{ asset('/admin/layui/css/layui.css') }}" media="all" />
    <link rel="stylesheet" href="{{ asset('/admin/css/public.css') }}" media="all" />
    <link rel="stylesheet" href="//at.alicdn.com/t/font_1001675_72pvzjbek5n.css">
</head>
<body class="childrenBody">
<blockquote class="layui-elem-quote layui-bg-green">
    <div id="nowTime">{{ session("info")['nickname'] }}，你好。<span id="nowTime2"></span></div>
</blockquote>
<div class="layui-row layui-col-space10 panel_box">
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
        <a href="/admin/type/index">
            <div class="panel_icon layui-bg-green">
                <i class="layui-anim iconfont icon-duojilanmu"></i>
            </div>
            <div class="panel_word">
                <span>{{ $count_type }}</span>
                <cite>栏目数</cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
        <a href="/admin/article/index">
            <div class="panel_icon layui-bg-black">
                <i class="layui-anim iconfont icon-ai-article"></i>
            </div>
            <div class="panel_word">
                <span>{{ $count_article }}</span>
                <cite>文章数</cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
        <a href="/admin/tag/index">
            <div class="panel_icon" style="background: #FE4365;">
                <i class="layui-anim iconfont icon-tubiaozhizuomoban-"></i>
            </div>
            <div class="panel_word">
                <span>{{ $count_tag }}</span>
                <cite>标签数</cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
        <a href="/admin/case/index">
            <div class="panel_icon layui-bg-red">
                <i class="layui-icon layui-anim">&#xe63c;</i>
            </div>
            <div class="panel_word">
                <span>{{ $count_case }}</span>
                <cite>专栏数</cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
        <a href="/admin/user/index">
            <div class="panel_icon layui-bg-orange">
                <i class="layui-anim seraph icon-icon10" data-icon="icon-icon10"></i>
            </div>
            <div class="panel_word userAll">
                <span>{{ $count_user }}</span>
                <em>用户总数</em>
                <cite class="layui-hide">用户数</cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
        <a href="/admin/comment/index">
            <div class="panel_icon layui-bg-blue">
                <i class="layui-anim iconfont icon-weibiaoti-"></i>
            </div>
            <div class="panel_word">
                <span class="">{{ $count_comment  }}</span>
                <cite>评论</cite>
            </div>
        </a>
    </div>
</div>
<div class="layui-row layui-col-space10">
    <div class="layui-col-lg6 layui-col-md12">
        <blockquote class="layui-elem-quote title">系统基本参数</blockquote>
        <table class="layui-table magt0">
            <colgroup>
                <col width="150">
                <col>
            </colgroup>
            <tbody>
            <tr>
                <td>最大上传限制</td>
                <td class="server">
                    <?PHP echo get_cfg_var ("upload_max_filesize")?get_cfg_var ("upload_max_filesize"):"不允许上传附件";
                    ?>
                </td>
            </tr>
            <tr>
                <td>当前版本</td>
                <td class="version"><?php echo "php".phpversion(); ?></td>
            </tr>
            <tr>
                <td>开发作者</td>
                <td class="author">admin</td>
            </tr>
            <tr>
                <td>网站首页</td>
                <td class="homePage"><a href="/" target="_blank">网站首页</a></td>
            </tr>
            <tr>
                <td>服务器操作系统</td>
                <td class="server"><?php echo PHP_OS; ?></td>
            </tr>
            <tr>
                <td>服务器操作系统</td>
                <td class="server"><?PHP echo $_SERVER ['SERVER_SOFTWARE']; ?></td>
            </tr>
            </tbody>
        </table>

    </div>
    <div class="layui-col-lg6 layui-col-md12">
        <blockquote class="layui-elem-quote title">最新文章 <i class="layui-icon layui-red">&#xe756;</i></blockquote>
        <table class="layui-table mag0" lay-skin="line">
            <colgroup>
                <col>
                <col width="110">
            </colgroup>
            <tbody class="hot_news">
                @foreach($newArticle as $v)
                <tr><td align="left"><a href="{{ url('/article/'.$v->id) }}" target="_blank">{{ $v->title }}</a></td><td>{{ date('Y-m-d', $v->addtime) }}</td></tr>
                @endforeach
            </tbody>
        </table>
    </div>
</div>

<script type="text/javascript" src="{{ asset('/admin/layui/layui.js') }}"></script>
<script type="text/javascript" src="{{ asset('/admin/layui/main.js') }}"></script>
</body>
</html>